import { ChangeDetectionStrategy, Component } from '@angular/core';
import { LoadingService } from '@iux/live';

@Component({
  templateUrl: './global.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class GlobalComponent {
  constructor(private loadingService: LoadingService) {}

  loading() {
    this.loadingService.show();

    setTimeout(() => {
      this.loadingService.hide();
    }, 1500);
  }
}
